package br.com.testeoab.model;

import java.io.Serializable;

public class Materia implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 749697195581791520L;
	
	private Long lngId;
	private String strMateria;
	
	public Long getLngId() {
		return lngId;
	}
	public void setLngId(Long lngId) {
		this.lngId = lngId;
	}
	public String getStrMateria() {
		return strMateria;
	}
	public void setStrMateria(String strMateria) {
		this.strMateria = strMateria;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((lngId == null) ? 0 : lngId.hashCode());
		result = prime * result
				+ ((strMateria == null) ? 0 : strMateria.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Materia other = (Materia) obj;
		if (lngId == null) {
			if (other.lngId != null)
				return false;
		} else if (!lngId.equals(other.lngId))
			return false;
		if (strMateria == null) {
			if (other.strMateria != null)
				return false;
		} else if (!strMateria.equals(other.strMateria))
			return false;
		return true;
	}
	
	

}
